import layout from '@/layout'
export default {
  path: '/employee',
  component: layout,
  children: [{
    path: '',
    name: 'employee',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'people'
    }
  },
  // path: 'employee/detail',绝对地址，访问这个页面就必须是:http://XXX/employee/detail
  { path: 'detail/:id?', // 相对地址，访问这个页面的方式是：带上1级路由的path, 加？他能匹配的规则是：http://XXX/employee/detail 或者 http://XXX/employee/detail/100
    component: () => import('@/views/employee/detail.vue'),
    hidden: true,
    meta: { title: '员工详情' }
  }]

}
